//    Copyright (C) Kherty.  All rights reserved.
using System.Windows.Media;
using System.Windows.Media.Imaging;

namespace OpenLS.Drawing.Internals
{
    public class PixelFormatHelper
    {
        public static BitmapEncoder GetEncoder(PixelFormat format)
        {
            return new JpegBitmapEncoder();
/*
            if (format == PixelFormats.Default)
                return new JpegBitmapEncoder();

            if (format == PixelFormats.Indexed1)
                return new JpegBitmapEncoder();

            if (format == PixelFormats.Indexed2)
                return new JpegBitmapEncoder();

            if (format == PixelFormats.Indexed4)
                return new JpegBitmapEncoder();

            if (format == PixelFormats.Indexed8)
                return new JpegBitmapEncoder();

            if (format == PixelFormats.BlackWhite)
                return new JpegBitmapEncoder();

            if (format == PixelFormats.Gray2)
                return new JpegBitmapEncoder();

            if (format == PixelFormats.Gray4)
                return new JpegBitmapEncoder();

            if (format == PixelFormats.Gray8)
                return new JpegBitmapEncoder();

            if (format == PixelFormats.Bgr555)
                return new JpegBitmapEncoder();

            if (format == PixelFormats.Bgr565)
                return new JpegBitmapEncoder();

            if (format == PixelFormats.Gray16)
                return new JpegBitmapEncoder();

            if (format == PixelFormats.Bgr24)
                return new JpegBitmapEncoder();

            if (format == PixelFormats.Rgb24)
                return new JpegBitmapEncoder();

            if (format == PixelFormats.Bgr32)
                return new JpegBitmapEncoder();

            if (format == PixelFormats.Bgra32)
                return new JpegBitmapEncoder();

            if (format == PixelFormats.Pbgra32)
                return new JpegBitmapEncoder();

            if (format == PixelFormats.Gray32Float)
                return new JpegBitmapEncoder();

            if (format == PixelFormats.Bgr101010)
                return new JpegBitmapEncoder();

            if (format == PixelFormats.Rgb48)
                return new JpegBitmapEncoder();

            if (format == PixelFormats.Rgba64)
                return new JpegBitmapEncoder();

            if (format == PixelFormats.Prgba64)
                return new JpegBitmapEncoder();

            if (format == PixelFormats.Rgba128Float)
                return new JpegBitmapEncoder();

            if (format == PixelFormats.Prgba128Float)
                return new JpegBitmapEncoder();

            if (format == PixelFormats.Rgb128Float)
                return new JpegBitmapEncoder();

            if (format == PixelFormats.Cmyk32)
                return new JpegBitmapEncoder();
*/
        }
    }
}